package com.bachongLightNovel.system.mapper;

import com.bachongLightNovel.model.dto.system.AssignPermissionDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author vermouth
 */
@Mapper
public interface SystemRolePermissionMapper {

    //根据角色id查询对应的权限id
    List<Long> selectByRoleId(Long roleId);

    //批量插入roleId和permissionId
    void insertBatch(AssignPermissionDto dto);

    //根据角色id删除相关信息
    void deleteByRoleId(Long roleId);
}
